#ifndef ExplosionEffect_h
#define ExplosionEffect_h

#include "Widget.h"

class ExplosionEffect : public Widget
{
public:
	ExplosionEffect(Vector2 p_position, color p_color, double p_end_radius)
	: Widget(EXPLOSIONEFFECT, p_position, p_color)
	{
		m_end_radius = p_end_radius;
	}
	double getRadius() const
	{
		return m_end_radius*(getAge()/GC_EXPLOSION_DURATION);
	}
	virtual bool getFinished() const
	{
		return (bool)(getAge() > GC_EXPLOSION_DURATION);
	}
protected:
	double m_end_radius;
};


#endif //ExplosionEffect_h


